package com.aijk.ehm.api;

import com.aijk.commons.exception.ErrorCodeException;
import com.aijk.ehm.model.EhmInfo;
import com.aijk.ehm.model.qo.EhmInfoQo;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface EhmInfoApi {
    Long save(EhmInfo bean) throws ErrorCodeException;

    void update(EhmInfo bean) throws ErrorCodeException;

    EhmInfo findOne(Long id) throws ErrorCodeException;

    List<EhmInfo> list(EhmInfoQo qo);

    void deleteById(Long id) throws ErrorCodeException;

    int count(EhmInfoQo qo);

    PageInfo<EhmInfo> page(EhmInfoQo qo);
}